body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f3f3f3;
    color: #333;
}

/* Header */
header {
    text-align: center;
    padding: 2rem;
    background: #222;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    animation: slideDown 1s ease-in-out;
}

/* Navbar */
.project-navbar {
    display: flex;
    justify-content: center;
    background: #0a7304d6;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 1100;
    position: absolute;
    left: 20px; /* Move it to the left */
    top: 50%;
    transform: translateY(-50%); /* Center it vertically */
}

/* Hide hamburger menu in full-screen mode */
#mobile-menu {
    display: none;
    cursor: pointer;
}

/* Show hamburger menu only for small screens */
@media screen and (max-width: 768px) {
    #mobile-menu {
        display: block;
    }

    /* Hide nav links by default */
    #about-nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #0a7304;
    }

    /* Show nav links when active */
    #about-nav-links.active {
        display: flex;
    }
}

.hamburger div {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease-in-out;
}

/* Animation for hamburger icon */
.hamburger.open div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open div:nth-child(2) {
    opacity: 0;
}
.hamburger.open div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


.project-nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.project-nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    transition: color 0.3s ease-in-out;
}

.project-nav-links li a:hover {
    color: #ffd700;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .project-nav-links {
        display: none;
        flex-direction: column;
        background: #0a7304;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        text-align: center;
        padding: 10px 0;
    }

    .project-nav-links.active {
        display: flex;
    }
}

/* Projects Section */
.projects {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 3rem 1rem;
    font-size: 1.3rem;
}

.projects a {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Keeps the text color same as parent */
    /* display: block; Makes the entire div clickable */
}

.projects a:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    transition: transform 0.3s ease-in-out;
}

.project-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 320px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
}

.project-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.project-card h2 {
    color: #0a7304;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-card:hover img {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}